package s08.ch10.ex1;

public class Student extends Person {
	private Integer grade;
	private String schoolname;

	public Student(String name, String surname, String address, Integer grade,
			String schoolname) {

		super(name, surname, address);
		//this.name=name;
		setGrade(grade);
		setSchoolname(schoolname);

	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public String getSchoolname() {
		return schoolname;
	}

	public void setSchoolname(String schoolname) {
		this.schoolname = schoolname;
	}
}
